package com.qf.swagger.config;

import com.qf.swagger.utils.SwaggerAppender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.spring.web.plugins.Docket;

@EnableConfigurationProperties(Swaggerproperties.class)
@Configuration
public class AutoSwaggerConfigure {
    @Autowired
    Swaggerproperties swaggerproperties;
    public Docket swaggerAppender(){
        final SwaggerAppender swaggerAppender = new SwaggerAppender();
        final Docket docket = swaggerAppender.buildDocket(swaggerproperties);
        return docket;


    }

}
